#include <stdio.h>
struct Score
{
    float a;
    float b;
    float c;
    float d;
    float e;
};
float sum(float a, float b, float c, float d, float e)
{
    return a + b + c + d + e;
}
int main()
{
    struct Score sc1;
    struct Score sc2;
    struct Score sc3;
    struct Score sc4;
    struct Score sc5;
    scanf("%f %f %f %f %f\n", &sc1.a, &sc1.b, &sc1.c, &sc1.d, &sc1.e);
    scanf("%f %f %f %f %f\n", &sc2.a, &sc2.b, &sc2.c, &sc2.d, &sc2.e);
    scanf("%f %f %f %f %f\n", &sc3.a, &sc3.b, &sc3.c, &sc3.d, &sc3.e);
    scanf("%f %f %f %f %f\n", &sc4.a, &sc4.b, &sc4.c, &sc4.d, &sc4.e);
    scanf("%f %f %f %f %f\n", &sc5.a, &sc5.b, &sc5.c, &sc5.d, &sc5.e);
    printf("%f %f %f %f %f %f\n", sc1.a, sc1.b, sc1.c, sc1.d, sc1.e,
        sum(sc1.a, sc1.b, sc1.c, sc1.d, sc1.e));
    printf("%f %f %f %f %f %f\n", sc2.a, sc2.b, sc2.c, sc2.d, sc2.e,
        sum(sc2.a, sc2.b, sc2.c, sc2.d, sc2.e));
    printf("%f %f %f %f %f %f\n", sc3.a, sc3.b, sc3.c, sc3.d, sc3.e,
        sum(sc3.a, sc3.b, sc3.c, sc3.d, sc3.e));
    printf("%f %f %f %f %f %f\n", sc4.a, sc4.b, sc4.c, sc4.d, sc4.e,
        sum(sc4.a, sc4.b, sc4.c, sc4.d, sc4.e));
    printf("%f %f %f %f %f %f\n", sc5.a, sc5.b, sc5.c, sc5.d, sc5.e,
        sum(sc5.a, sc5.b, sc5.c, sc5.d, sc5.e));
    return 0;
}